import Vue from 'vue'

import App from './App.vue'
import resource from "vue-resource"
import store from "./vuex/store"
import iView from "view-design"
import VueRouter from 'vue-router'
import router from './router'
import ElementUI from 'element-ui'

Vue.use(iView)
Vue.use(VueRouter)
Vue.use(ElementUI)

Vue.config.productionTip = false

const vm = new Vue({
    el: "#root",
    store,
    router,
    render: h => h(App),
    mounted() {
        Vue.use(resource)
    }
})

export default vm